<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>首页</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<link rel="stylesheet" href="../css/mui.min.css">
		<style>
			html,
			body {
				background-color: #efeff4;
			}
			
			.mui-bar-nav {
				background: white;
			}
		</style>
	</head>

	<body>
	<header class="mui-bar mui-bar-nav">
			<a onclick="test()" href="javascript:void(0)" class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">dialog（消息框）</h1>
		</header>
	</body>
		<script src="../js/resource/mui.js"></script>
	<script src="../js/resource/vue.js"></script>
	<script src="../js/resource/config.js"></script>
	<script>
			function test(){
				var old_back = mui.back;
		mui.back = function(){
  var btn = ["确定","取消"];
  mui.confirm('确认关闭当前窗口？','Hello MUI',btn,function(e){
    if(e.index==0){
    	//执行mui封装好的窗口关闭逻辑；
    	old_back();
    }
  });
}
		}
	</script>

</html>